package com.sand.sc.upms.user.feign;

import com.sand.sc.upms.user.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * com.sand.sc.upms.user.feign
 *
 * @author yaohaobing
 * @version 1.0.0
 * @description UserFeign
 * @date 2019/11/29 14:21
 */
@FeignClient(name = "eureka-client", configuration = FeignConfig.class)
public interface UserFeign {
    @GetMapping("/hello")
    String getUser(@RequestParam(name = "name") String name);
}
